const express = require('express');
const user_handler = require('../router_handler/user')
const router = express.Router();
const jwt = require("jsonwebtoken");
const config = require('../config')
const db = require('../db/index')
const multer = require('multer')
const path = require("path")
const uploads = multer({dast:path.join(__dirname,'../uploads')})
router.post('/reguser', user_handler.regUser);
router.post('/login', user_handler.login);
// router.post('/loginTeacher', user_handler.loginTeacher)
router.post('/login_teacher', user_handler.login_teacher);
router.post('/add_homework_teacher', user_handler.add_homework_teacher);
router.post('/get_homework_titile_student', user_handler.get_homework_titile_student);
router.post('/get_homework_student', user_handler.get_homework_student);
router.post('/get_uname', user_handler.get_uname);







module.exports = router;